package com.learn.project2.model.vo.wx.aftersale;

import com.learn.project2.bean.MarketAftersale;
import com.learn.project2.bean.MarketOrder;
import com.learn.project2.bean.MarketOrderGoods;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * \* Author: Valley
 * \* Date: 2022/1/12
 * \* Time: 22:08
 * \* Description:
 */

@NoArgsConstructor
@Data
public class AftersaleDetailVO2 {


    /**
     * orderGoods : [{"id":107,"orderId":84,"goodsId":1109008,"goodsName":"云端沙发组合","goodsSn":"1109008","productId":140,"number":4,"price":3999,"specifications":["标准"],"picUrl":"http://yanxuan.nosdn.127.net/c5be2604c0e4186a4e7079feeb742cee.png","comment":1081,"addTime":"2022-01-10 22:52:38","updateTime":"2022-01-11 15:13:39","deleted":false}]
     * aftersale : {"id":21,"aftersaleSn":"20220112315465","orderId":84,"userId":1,"type":2,"reason":"fafaf","amount":15896,"pictures":["http://182.92.235.201:8083/wx/storage/fetch/mlksual02qn0btj0nl1s.jpg"],"comment":"","status":1,"addTime":"2022-01-12 19:47:50","updateTime":"2022-01-12 19:47:50","deleted":false}
     * order : {"id":84,"userId":1,"orderSn":"20220110101832","orderStatus":401,"aftersaleStatus":1,"consignee":"李智焕","mobile":"15812734512","address":"广东省广州市天河区 leeDongWoo","message":"","goodsPrice":15996,"freightPrice":0,"couponPrice":100,"integralPrice":0,"grouponPrice":0,"orderPrice":15896,"actualPrice":15896,"shipSn":"11","shipChannel":"ZTO","shipTime":"2022-01-11 15:12:44","confirmTime":"2022-01-11 15:12:57","comments":0,"endTime":"2022-01-10 23:16:38","addTime":"2022-01-10 22:52:38","updateTime":"2022-01-12 19:47:50","deleted":false}
     */

    private AftersalePicVO2 aftersale;
    private MarketOrder order;
    private List<MarketOrderGoods> orderGoods;

    @NoArgsConstructor
    @Data
    public static class AftersaleBean {
        /**
         * id : 21
         * aftersaleSn : 20220112315465
         * orderId : 84
         * userId : 1
         * type : 2
         * reason : fafaf
         * amount : 15896
         * pictures : ["http://182.92.235.201:8083/wx/storage/fetch/mlksual02qn0btj0nl1s.jpg"]
         * comment :
         * status : 1
         * addTime : 2022-01-12 19:47:50
         * updateTime : 2022-01-12 19:47:50
         * deleted : false
         */

        private int id;
        private String aftersaleSn;
        private int orderId;
        private int userId;
        private int type;
        private String reason;
        private int amount;
        private String comment;
        private int status;
        private String addTime;
        private String updateTime;
        private boolean deleted;
        private List<String> pictures;
    }

    @NoArgsConstructor
    @Data
    public static class OrderBean {
        /**
         * id : 84
         * userId : 1
         * orderSn : 20220110101832
         * orderStatus : 401
         * aftersaleStatus : 1
         * consignee : 李智焕
         * mobile : 15812734512
         * address : 广东省广州市天河区 leeDongWoo
         * message :
         * goodsPrice : 15996
         * freightPrice : 0
         * couponPrice : 100
         * integralPrice : 0
         * grouponPrice : 0
         * orderPrice : 15896
         * actualPrice : 15896
         * shipSn : 11
         * shipChannel : ZTO
         * shipTime : 2022-01-11 15:12:44
         * confirmTime : 2022-01-11 15:12:57
         * comments : 0
         * endTime : 2022-01-10 23:16:38
         * addTime : 2022-01-10 22:52:38
         * updateTime : 2022-01-12 19:47:50
         * deleted : false
         */

        private int id;
        private int userId;
        private String orderSn;
        private int orderStatus;
        private int aftersaleStatus;
        private String consignee;
        private String mobile;
        private String address;
        private String message;
        private int goodsPrice;
        private int freightPrice;
        private int couponPrice;
        private int integralPrice;
        private int grouponPrice;
        private int orderPrice;
        private int actualPrice;
        private String shipSn;
        private String shipChannel;
        private String shipTime;
        private String confirmTime;
        private int comments;
        private String endTime;
        private String addTime;
        private String updateTime;
        private boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class OrderGoodsBean {
        /**
         * id : 107
         * orderId : 84
         * goodsId : 1109008
         * goodsName : 云端沙发组合
         * goodsSn : 1109008
         * productId : 140
         * number : 4
         * price : 3999
         * specifications : ["标准"]
         * picUrl : http://yanxuan.nosdn.127.net/c5be2604c0e4186a4e7079feeb742cee.png
         * comment : 1081
         * addTime : 2022-01-10 22:52:38
         * updateTime : 2022-01-11 15:13:39
         * deleted : false
         */

        private int id;
        private int orderId;
        private int goodsId;
        private String goodsName;
        private String goodsSn;
        private int productId;
        private int number;
        private int price;
        private String picUrl;
        private int comment;
        private String addTime;
        private String updateTime;
        private boolean deleted;
        private List<String> specifications;
    }
}
